/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testing;

import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import model.MahasiswaTabelModel;
import model.Yudisium;

/**
 *
 * @author tashiba
 */
public class TestMahasiswaTabelModel {

    public static void main(String[] args) {
        ArrayList<Yudisium> test1 = new ArrayList<Yudisium>();
        Yudisium test11 = new Yudisium();
        try {
            test11.setNim("123456789");
        } catch (Exception ex) {
            Logger.getLogger(TestMahasiswaTabelModel.class.getName()).log(Level.SEVERE, null, ex);
        }
            test11.setNama(" Java");
            test11.setProdi(" TI");
            test11.setPeriode(" November");
//            test11.(" Java");
//            test11.setNama(" Java");
//            test11.setNama(" Java");
//            test11.setNama(" Java");
//            test11.setNama(" Java");
//            test11.setNama(" Java");





//        Anggota test12 = new Anggota();
//        try {
//            test12.setIdAnggota("1234567891");
//            test12.setNama("Struktur Data");
//        } catch (Exception ex) {
//            Logger.getLogger(TestAnggotaTableModel.class.getName()).log(Level.SEVERE, null,
//                    ex);
//        }

        test1.add(test11);
//        test1.add(test12);


        MahasiswaTabelModel test2 = new MahasiswaTabelModel(test1);
        System.out.println("id	:" + test2.getValueAt(0, 0) + "	nama    :" + test2.getValueAt(0, 1)+" prodi     :" + test2.getValueAt(0, 2));
//        System.out.println("idAnggota	:" + test2.getValueAt(1, 0) + "	nama:" + test2.getValueAt(1, 1));
    }
}



